home *** CD-ROM | disk | FTP | other *** search
/ Merciful 5 / Merciful - Disc 5.iso / software / d / devpac / devpacv2.0a.dms / devpacv2.0a.adf / LatticeInfo < prev    next >
Text File  |  1989-06-21  |  1KB  |  34 lines

  1.     Lattice Extended Hunk Types
  2.     ===========================
  3.  
  4. Lattice C versions 4 and 5 use new forms of hunk types in linkable
  5. files and these are now supported by Devpac Amiga. This is only
  6. useful for Lattice users, everyone else can ignore the rest of this file.
  7.  
  8. Do get this you must specify OPT Y+. It only has an effect when
  9. generating linkable code and will only work with modern versions
  10. of BLink. Don't try to use the one supplied with Devpac (or ALink)
  11. but use the one supplied with your Lattice compiler.
  12.  
  13. After an OPT Y+ you can then refer to imports (XREFs) and symbols
  14. in other other sections relative to an address register and
  15. everything will work (after you link). For example,
  16.  
  17.     OPT    L+,Y+
  18.     SECTION    CODE,CODE
  19.     XREF    _CGlobal
  20.     XDEF    _AsmGlobal,_test
  21.  
  22. _test    move.l    _CGlobal(a4),d0
  23.     move.l    d0,_AsmGlobal(a4)
  24.     rts
  25.  
  26.     SECTION    __MERGED,DATA
  27. _AsmGlobal    ds.l    1
  28.  
  29. Don't forget the underlines on the imports & exports.
  30.  
  31. See your Lattice manual for further details of assembly-language
  32. interfacing.
  33.  
  34.